#include <iostream>
#include <algorithm>
#define int long long
using namespace std;


int cac(int a,int b){
	return a*b/__gcd(a,b);
}


signed main(){
	int s,t,ans=1;
	cin>>s>>t;
	for(int i=s;i<=t;i++)
		ans = cac(ans,i);
	cout<<ans;
	return 0;
}
